﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class PrintNNumbersInSingleLine
{
    static void Main(string[] args)
    {
        Console.Write("Enter N = ");
        int n = Convert.ToInt32(Console.ReadLine());
        long timerSpeed = 100000000;
        for (int i = 0; i <= n; i++) 
        {
            for (int a = 0; a < timerSpeed; a++) 
            {
            }
            if (i < 10)
            {
                Console.Write(i);
                
            }
            else 
            {
                Console.Write((i % 10));
            }   
        }
        Console.WriteLine();
    }
}

